﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Meeting.aspx.cs" Inherits="Deparment_Worker_Meeting" validateRequest="false" %>


<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>添加会议记录</title>
    <link href="../../styles/css.css" rel="stylesheet" type="text/css"/>
  <script language="javascript" src="../../common/javascript/calendar.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function CheckValue(objTitleID,objContentID,objDateId)
        {
            txttitle=document.getElementById(objTitleID).value;
            txtcontent=document.getElementById(objContentID).value;
            txtDate=document.getElementById(objDateId).value;
           
            if(txttitle=="")
            {
                alert("标题不能为空!");
                return false;
            }
            if(txtcontent=="")
            {
                alert("信息内容不能为空!");
                return false;
            }
             if(txtDate=="")
            {
                alert("发布日期不能为空!");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div style="text-align:center;">
            <table id="tabData" width="98%" border="0" align="center" cellpadding="2" cellspacing="1"
                class="table_table2">
                <tr>
                    <td class="table_td3">
                        标题：</td>
                    <td class="table_td2">
                        <input type="text" name="txtName" id="txtName" size="40" value="<%=Request.Form["txtName"]==null?"":Request.Form["txtName"].Trim()%>"/>
                        <span style="color: #ff0000">(*)</span></td>
                </tr>
                <tr>
                    <td class="table_td3" style="height: 371px">
                        内容：</td>
                    <td class="table_td2" style="height: 371px">
                        <div style="width: 100%; table-layout: fixed; text-align: left;">
                            <FTB:FreeTextBox ID="txtContent" runat="server">
                            </FTB:FreeTextBox>
                            <span style="color: #ff0000">(*)</span></div>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3" style="height: 28px">
                        上传附件：</td>
                    <td class="table_td2" style="height: 28px">
                        <asp:FileUpload ID="FileUpload1" unselectable="on"  runat="server" Width="604px" /></td>
                </tr>
                <tr>
                    <td class="table_td3" style="height: 28px">
                        发布日期：</td>
                    <td class="table_td2" style="height: 28px">
                        &nbsp;<asp:TextBox ID="txtAddDate" runat="server" onclick="javascript:fPopCalendar(txtAddDate,txtAddDate);"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_td3">
                        <input type="submit" name="btnSubmit" id="btnSubmit" value="保  存" class="button_bg"
                            onclick="javascript:return CheckValue('txtName','<%=txtContent.ClientID %>','<%=txtAddDate.ClientID %>')" />
                    </td>
                    <td class="table_td2">
                        <input id="Button2" class="button_bg" type="button" value="关  闭" onclick="window.close()" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
